<template>
    <Page>
        <span>我的</span>


        <LoadingButton :click="GoHome" type="success">退出登录</LoadingButton>
    </Page>
</template>
<script setup>
import { clearToken } from '@/utils/auth';
import { useRouter } from 'vue-router';
const router = useRouter();
const GoHome = async function () {
    clearToken();
    router.replace('/login')
}

</script>
<style lang="less" scoped></style>